package cn.zyb.feignclient;


import cn.zyb.domain.User;
import cn.zyb.util.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "movie-server",fallbackFactory = MovieFeignClientFallbackFactory.class) // 指定需要调用的服务的应用名称
public interface MovieFeignClient {

    @PostMapping("/movie/addOneTicket")
    Result addOneTicket(@RequestBody User user);
}
